package cn.com.jcoo.example.starter;

import lombok.extern.slf4j.Slf4j;

@Slf4j
public class SimpleService {

    private final SimpleProperties simpleProperties;

    public SimpleService(SimpleProperties simpleProperties) {
        this.simpleProperties = simpleProperties;
    }

    public final SimpleProperties print() {
        log.info(simpleProperties.getValue());
        log.info(simpleProperties.getType().name());
        return simpleProperties;
    }
}
